package com.yjk.example;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

/**
 * @author yujiakui
 * @version 1.0
 * Email: jkyu@haiyi-info.com
 * date: 2018/11/9 9:25
 * description：
 **/
@Component
public class SecondBizService implements Service{

    @Autowired
    @Qualifier("firstBizService")
    private Service service;

    public void say(String s) {
        System.out.println("second biz --->yjk "+s);
        service.say(s);
    }
}
